Skip to main content

This a technical design document for Health Identity HPI Facility NEMS events. The target audiences are those working on enrolment publisher application, enrolment subscriber applications, and NEMS implementation of HPI Facility events.

Background

Te Whatu Ora Health Identity Team maintains a register of facilities that deliver health services in the Health Provider Index system (HPI).

HPI Facilities are operated by a registered practitioner (having HPI CPN) under the umbrella of an HPI-registered Organisation (having HPI Org ID).

When HPI facilities are created, or changes to HPI facilities are made with regards to their status, type, name, managing organisation, location or contact details, this information is recorded in HPI.

HPI facility current state information is required by

Dependent Te Whatu Ora systems including Hospital Patient Administration Systems and DHB clinical systems.

Crown entities including Accident Compensation Corporation

Hospital and private facilities (GP, Pharmacy) for HL7 messaging via Healthlink

Pharmacies for NZePS integration

GP Practices, Community Midwives and others for prescribing

Process view

Event process view:

Events and event data:

Topic taxonomy

For facility event

Event Topic FieldField TypeValueDescription
service-domainRoot“provideridentity”“provider identity” is the service domain of facility events
resourceRoot“location”The Location resource represents named Facilities at which an organisation provides health services HPI Location - New Zealand HPI Implementation Guide v1.4.10
event categoryRoot“facility”A physical location from which health goods and/or services are provided. They are also referred to as an HPI Facility.
verbRootcreated, updatedEvent action, one of the values
versionRoot“v1”Starting version
facility typeEvent PropertyalphanumericA coded value used to describe the type of healthcare facility (e.g. dhbhosp Public Hospital, a facility offering inpatient, outpatient and day patient services run by a DHB) HPI Location Type - HIP FHIR Common Terminology Guide v1.9.5
managing organisationEvent PropertyHPI Org IDThe HPI organisation ID of the organisation that operates the facility. Organization Identifier
DHBEvent PropertyHPI Org IDThe HPI organisation ID of the District Health Board in which the facility is located. District Health Board Identifer - HL7® FHIR® New Zealand Base Implementation Guide v3.0.1

service-domain/resource/event/verb/version/facility-type/managing-organisation/DHB

The topic fields are elaborated in the table below (with Dark-green for root taxonomy; Light-green for event property)

Message header (Event metadata)

HeaderKey LiteralDescriptionRequiredFormat/ValuesExample
IDsolace-user-property-idMessage id, unique for each publisherRequiredGUID correlation ID987298dd-c484-462f-a15d-f18a97267959
Sourcesolace-user-property-sourcepublisher URI referenceRequiredhttps://hip-uat.digital.health.nz for UAT https://hip.digital.health.nz for prodhttps://hip-uat.digital.health.nz for UAT and https://hip.digital.health.nz for prod
Timesolace-user-property-timeUTC time when the message is publishedRequiredYYYY-MM-DDTHH:MM:SS2023-11-30T18:54:43Z
Spec Versionversionversion of the CloudEvents specOptionalmajor.minor1.0
Typesolace-user-property-typesubstring of the topic taxonomy including root to versionRequired{root}/{version}demographics/patient/death/new/v1.0.0
Subjectsolace-user-property-subjectNHI numberRequired[A-Z]{3}([0-9]{4}([0-9]{2}[A-Z]{2}))
Content typesolace-user-property-datacontenttype or content-type for REST APIContent type of event dataRequiredapplication/jsonapplication/jso

Message payload

HPI Facility ID

Dormant HPI Facility IDs

Resource version

Event : created

Payload Schema

{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"type": "object",
"properties": {
"facilityID": {
"type": "string",
"description": "Facility ID"
},
"dormantFacilityIDs": {
"type": "array",
"items": {
"type": "string"
},
"description": "Dormant Facility ID's"
},
"resourceVersion": {
"type": "string",
"description": "Resource Version"
}
},
"additionalProperties": false,
"required": [
"facilityID",
"resourceVersion"
]
}

Example

{
"facilityID": "FZZ941-D",
"dormantFacilityIDs": ["FZZ941-C"],
"resourceVersion": "1.4.10"
}

Event : death/update

Payload Schema

As Above

Example

As Above

Event : updated

Payload Schema

Same as above

Example

As above